package fr.labri.buganalyzer.writers;

import static org.junit.Assert.fail;

import java.sql.Connection;

import org.dbunit.database.DatabaseConnection;
import org.dbunit.ext.hsqldb.HsqldbConnection;
import org.hibernate.Session;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public abstract class AbstractDBTestClass {

	protected static final String dbfile = "./resources/testData/testingdb.h2.db";
	protected static H2Adapter dao; 
	protected static Connection connection;
	protected static DatabaseConnection dbunitConnection;
//	
//	@BeforeClass
//	public static void setupDatabase() throws Exception {
//	 dao = new H2Adapter(dbfile);
//	 Session s  = HibernateUtil.getSession();
//	 
//	 connection = dao.session.
//	 dbunitConnection = new HsqldbConnection(connection,null); 
//	 dao.setConnection(connection);
//	 dao.createTables();
//	￼￼}
	
	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void test() {
		fail("Not yet implemented");
	}

}
